<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/jsplib/pubhead.jsp"%>
<%@ page import="net.comm.common.ValueMaping" %>
<%@ taglib uri="/WEB-INF/myTaglib.tld" prefix="tag"%>
<%@ taglib uri="/WEB-INF/jstlfun.tld" prefix="myfn" %>
<%@ taglib uri="/WEB-INF/c.tld"  prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="x-ua-compatible" content="ie=7" />
	<TITLE>系统参数</TITLE>
	<link rel="stylesheet" type="text/css" href="${cpath}/css/adgloab.css"/>
	<link rel="stylesheet" type="text/css" href="${cpath}/css/adstyle.css" />
	
</head>
<body>
<script> 
	//转页面
	var curUserID = '${userID}';
	if((curUserID == "")||(curUserID == null)){
//		parent.window.location.replace("${cpath}/index.jsp"); 
	}
</script>
		<DIV id=admin>

		<!-- 右侧宽栏 {{{ -->
		<DIV class=group_mid>

		<form action="${cpath}/prop.do" name="theForm"  method="post" enctype="multipart/form-data" >
		<div class='subtop' >
			<p><a href="#"><img src="${cpath}/images/slogo.png" ></a></p>
			<dl >
				<dd class="info"><span>分&nbsp;&nbsp;&nbsp;&nbsp;类：</span>
				<tag:ASSORTPROP name="qryAssortID" tagname='请选择' value=''onkeydown="catch_keydown(this);"/>
				</dd>
			</dl>
			<div class='fun'>
				<li><a href="javascript:doConfirm('adlist','','');">查&nbsp;&nbsp;询</a></li>
				<li><a href="javascript:doConfirm('addPage','','');">增&nbsp;&nbsp;加</a></li>
			</div>
		</div>
		<DIV class='whole'><!-- 右侧宽栏 }}}-->
			<table class="info">
				<thead>
				<tr align=left>
					<th width="5%">分类ID</th>
					<th width="8%">分类名称</th>
					<th width="5%">参数ID</th>
					<th width="10%">参数名称</th>
					<th width="8%">父参数ID</th>
					<th width="8%">显示顺序</th>								
					<th width="10%">操作</th>								
				</tr>
				</thead>
				<tbody>
					<c:forEach var="prop" items="${proplist}" varStatus="status">   
					<tr  <c:if test="${status.count%2!=0}"> bgcolor='#F2F3F6' </c:if> align=left>
						<td ><c:out value="${prop.assortID}"></c:out></td>
						<td ><c:out value="${prop.assortname}"></c:out></td>
						<td ><c:out value="${prop.propID}"></c:out></td>
						<td ><c:out value="${prop.propname}"></c:out></td>
						<td ><c:out value="${prop.parentID}"></c:out></td>
						<td ><c:out value="${prop.disNO}"></c:out></td>
						<td><a href="javascript:doConfirm('modifyPage','${prop.assortID}','${prop.propID}');">编辑</a>&nbsp;&nbsp;
						<c:if test="${prop.assortname == ''}">
						<a href="javascript:doConfirm('del','${prop.assortID}','${prop.propID}');">删除</a>
						</c:if>
						</td>			
					</tr>
					</c:forEach> 
					<tr align="left">   
					 <td colspan="7">
						<!-- 分页主键 formName字段当前的form名称 -->
						<%@ include file="/jsplib/page.jsp" %>
						<!--隐藏域-->
						<input type="hidden" name='action'	 value='adlist'/>
						<input type="hidden" name='assortID' value='${theForm.assortID}'/>
						<input type="hidden" name='propID'	 value='${theForm.propID}'/>
					 </td>
					</tr> 
				</tbody>
			</table>

		</div>			
		</form>
		</DIV><!-- content }}} -->
		</DIV><!-- profile_mid }}} -->
		</DIV><!-- group end }}} -->

</body>
</html>
<!---->

<script>

    /**
     * 检查项目资料维护
     */
	function doConfirm(act, aID, pID)
	{
		var form = document.theForm;

		var action = form['action'];
		action.value = act;


		var assortID = form['assortID'];
		assortID.value = aID;
		
		var propID = form['propID'];
		propID.value = pID;
		
		form.submit();
	}
   /**
    * 删除记录
    */
	function doDel(ID)
	{

		if(confirm("删除该记录，操作不可恢复，是否继续？")){

			window.location.href('${cpath}/prop.do?action=del&dp_ID=' + ID ); 	
		}
	}


</script>

